<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>工单管理</title>
    <style>
        ul li{
            float: left;
            padding: 10px;
            list-style:none;
            /*border: 1px solid #3a6c7e;*/
        }
    </style>
</head>
<body>
<div style="width:100%;min-height:100%;margin-bottom:20px;">

    <table width="96%" border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;border:1px solid gray;">
        <thead>
        <tr><th style="padding-left: 20px;">id</th><th>用户名</th><th>后台运营人员</th><th>标题</th><th>工单类型</th><th>申请图片</th><th>回复图片</th><th>创建时间</th><th>修改时间</th><th>是否解决</th><th>操作</th></tr>
        </thead>
        <tbody id="listTBody">
        {volist name='list' id='vo'}

        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.uid}</td>
            <td>{$vo.serviceManager_id}</td>
            <td>{$vo.title}</td>
            <td>
                {switch name="$vo.type"}
                {case value="0"}贷款{/case}
                {case value="1"}信用卡{/case}
                {case value="3"}保险{/case}
                {case value="4"}汽车金融{/case}
                {case value="5"}其他{/case}
                {default /}default
                {/switch}
            </td>
            <td>
                {if condition=" $vo.img_url  neq '' "}
                <img src="__ROOT__/uploads/{$vo.img_url}" />
                {/if}
            </td>
            <td>
                {if condition=" $vo.sm_img  neq ''"}
                    <img src="__ROOT__/uploads/{$vo.sm_img}" />
                {/if}

            </td>
            <td>
                {if condition="$vo['crate_time'] gt 0"}
                {$vo.crate_time|date='Y-m-d',###}
                {/if}
            </td>
            <td>
                {if condition="$vo['update_times'] gt 0"}
                {$vo.update_times|date='Y-m-d',###}
                {/if}
            </td>
            <td>
                {switch name="$vo.status"}
                {case value="1"}已解决{/case}
                {case value="0"}未解决{/case}
                {/switch}
            </td>
            <td style="padding:5px;">
                <!--{:url('Index/update','id='{$vo.id})}-->

                <a href="{:url('Index/update',array('id'=>$vo['id']))}"><button class ='btn btn-info'>编辑</button></a> <a href=""><button class ='btn btn-info' onclick="del()">删除</button></a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
{$list->render()}
</body>
</html>